Condition in Pipeline.
Introduction
The pipeline is a new type of dataset added to the AIV Application. Users can Define the relationship between different datasets and as well as tables with user-friendly UI. With Pipeline, no SQL knowledge is needed to provide join between tables and datasets available in AIV.
Prerequisites
To add a condition in Pipeline, you need working Datasets(JDBC) and a list of tables and views.
Objective
How to add a condition in Pipeline.
Download Pipeline.zip file from the link given Pipeline.zip
Follow steps to create Reverse Join Pipeline in AIV:-
Login to the AIV application with valid user credentials.
Go to Master Data > Dataset section from the Hamburger menu.
Go to the Dataset section, Click on Create Pipeline from the bottom menu bar. As shown in the figure below:
You can see creating a pipeline window in that by default it will take dataset and data source is empty, but when we select data source it will display a list of table and Dataset.
Once you click, you can see a blank create pipeline window as in the below image:
Enter the Following detail in the Pipeline dialog box:
Name: Condition Pipeline
Source: aiv-mapping
Expand tables from the left side table view, As shown in the figure below:
Drag and Drop the OFFICE table from the table box and drag to the diagram box on the right side, and select all the columns from the Select Column dialog box, as shown in the figure below:
Click on Submit button, after dragging & drop the OFFICE table in the diagram box, look like the figure below:
Drag and drop the second table, take the CUSTOMERS table, and drop it in the diagram box.
After dropping the CUSTOMERS table, select all the columns from the Select Columns dialog box, as shown in the figure below:
Click on submit button, offices and customers table from the diagram box will look like the figure below:
After adding OFFICES and CUSTOMERS from the table list, Drag the Country column from Customers to Offices, as shown in the figure below:
Click on the Join between two tables, to add Pipeline configuration.
The Pipeline configuration control box will open, and Click on Add Condition button, as shown in the figure below:
Enter the following details in it.
Select Field: office.country
Enter value: USA
Click on the + icon to add another new condition and enter the following details in it.
Select field: Customers.city
Enter value: Paris
Fill above details, as shown in the figure below:
Click on Get Condition Button.
Click on Submit Button.
Left Node should have OFFICES and Right Node should have CUSTOMERS.
The Connection between the two tables will look as shown in the figure below:
Click on Submit to save the Pipeline.
The pipeline is run in the Adhoc Analysis.
Go to Documents > Adhoc Analysis section from Hamburger menu.
In Adhoc Analysis click on the + icon to create a new Analysis, as shown in the figure below:
When you click on create Analysis then the Analysis Selection dialog box will open, as shown in the figure below:
Enter the following details in Analysis Section:
Dataset: Condition (select the Pipeline, which you are created)
The two tables will get load the left side box of Pipeline view, Now expends the OFFICES table, as shown in the figure below:
Drag and drop CITY column from OFFICES to Rows, Drag and drop STATE, Country column from OFFICE and Put it in Column box, Drag and drop the CreditLimit column from Customers to Values box (Select sum in Type), as shown in the figure below:
Click on Preview Button it will show the output and after the preview click on Cancel Button it will show the screen as follows:
Click on Save as icon for saving the Analysis, it will show the screen as below:
Give the name of Analysis.
Name: Condition Pipeline and Select the folder where you want to save Analysis, as shown in the figure below:
Click on Save As button to save Analysis.